// +----------------------------------------------------------------------
// | 加梯 [ LIFT赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.lift.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed LIFT并不是自由软件，未经许可不能去掉LIFT相关版权
// +----------------------------------------------------------------------
// | Author: 加梯 Team <admin@lift.com>
// +----------------------------------------------------------------------

import request from "@/libs/request";
import qs from "query-string";

/**
 * @description 社区信息管理--列表
 * @param {Object} param data {Object} 传值参数
 */
export function communityListApi(data) {
  return request({
    // url: 'user/user',
    url: "sysUser/selectAll?" + qs.stringify(data),
    method: "get"
    // params: data,
  });
}

/**
 * @description 社区信息详情
 * @param {Number} param id {Number} 会员id
 */
export function getCommunityDetailApi(id) {
  return request({
    url: `sysUser/selectOne?id=${id}`,
    method: "post"
  });
}

/**
 * @description 新建社区详情
 * @param {Object} param data {Object} 传值参数
 */
export function createCommunityApi(data) {
  return request({
    url: "sysUser/insert",
    method: "post",
    data
  });
}

/**
 * @description 编辑社区详情
 * @param {Object} param data {Object} 传值参数
 */
export function editCommunityDetailApi(data) {
  return request({
    url: "sysUser/update",
    method: "post",
    data
  });
}
